package consumer.service.fallback;

import consumer.service.UserService;
import entity.User;
import org.springframework.stereotype.Service;
import vo.ResponseResult;

@Service
public class UserServiceFallback implements UserService {
    @Override
    public ResponseResult add1(String username, String password) {
        System.out.println("Consumer.UserServiceFallback.add1()");
        return ResponseResult.fail("add1失败");
    }

    @Override
    public ResponseResult add2(User user) {
        System.out.println("Consumer.UserServiceFallback.add2()");
        return ResponseResult.fail("add2失败");
    }

    @Override
    public ResponseResult add3(User user) {
        System.out.println("Consumer.UserServiceFallback.add3()");
        return ResponseResult.fail("add3失败");
    }

    @Override
    public ResponseResult remove(Integer id) {
        System.out.println("Consumer.UserServiceFallback.remove()");
        return ResponseResult.fail("remove失败");
    }

    @Override
    public ResponseResult modify(Integer id, String username, String password) {
        System.out.println("Consumer.UserServiceFallback.modify()");
        return ResponseResult.fail("modify失败");
    }

    @Override
    public ResponseResult findById(Integer id) {
        System.out.println("Consumer.UserServiceFallback.findById()");
        return ResponseResult.fail("findById失败");
    }

    @Override
    public ResponseResult findAll() {
        System.out.println("Consumer.UserServiceFallback.findAll()");
        return ResponseResult.fail("findAll失败");
    }
}
